<?php 
$show_validator = true;
include TMPL_PATH.'public/header.phtml';
?>
<script type="text/javascript">
<!--
	$(function(){
	$.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'50'}, function(){this.close();$(obj).focus();})}});
 	$("#name").formValidator({onshow:"请输入广告位名称",onfocus:"请输入广告位名称"}).inputValidator({min:1,onerror:"请输入广告位名称"}).inputValidator({min:2,max:20,onerror:"入广告位名称应该为2-20位之间"});
	})
//-->
</script>

<div class="pad_10">
<form action="__SELF__" method="post" name="myform" id="myform" enctype="multipart/form-data">
<table cellpadding="2" cellspacing="1" class="table_form" width="100%">
	<tr>
		<th width="100">广告位名称：</th>
		<td><input type="text" name="name" id="name" size="30" class="input-text"></td>
	</tr>
	<tr>
		<th>宽×高：</th>
		<td><input type="text" name="width" size="5" value="" class="input-text"> x <input type="text" name="height" size="5" value="" class="input-text"> *广告位在页面中所占宽高，如果为0则为不限制</td>
	</tr>
	<tr>
		<th>播放方式：</th>
		<td>
						<label class="attr"><input type="radio" checked="checked" value="1" name="fashion">轮回显示</label>
						<label class="attr"><input type="radio" value="2" name="fashion">随机显示</label>
						<label>*如果此广告位有多条有效时， 广告位中的广告的播放顺序（必填）</label>
					</td>
	</tr>
	<tr>
	  <th>展示的广告数量：</th>
	  <td><input type="text" name="ad_nums" class="input-text" size="5" value=""/></td>
	</tr>
	<tr>
		<th>是否开启：</th>
		<td><input name="status" type="radio" value="1" checked>&nbsp;是&nbsp;&nbsp;
		<input 	name="status" type="radio" value="0">&nbsp;否</td>
	</tr>
</table>
<div class="bk15"></div>
    <input name="dosubmit" type="submit" class="dialog" value="提交" id="dosubmit" />
</form>
</div>
</body>
</html> 